cmake_minimum_required(VERSION 3.10)
project(qt_cpp_llmchat)

# 调试配置
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3 -O0")

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 查找 Qt6 包
find_package(Qt6 REQUIRED COMPONENTS Widgets)

# 包含nlohmann/json.hpp
include_directories(/usr/include)

add_executable(${PROJECT_NAME}
    llm.cpp
)

find_package(CURL REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE 
    Qt6::Widgets
    CURL::libcurl)
